#ifndef MyApp_H
#define MyApp_H

#include <QtCore>
#include <qapplication.h>

#if defined(Q_OS_WIN32)
#include <windows.h>
#include <Dbt.h>
#include <winioctl.h>
#endif

class MyApp : public QApplication
{
    Q_OBJECT

public:
    explicit MyApp(int argc, char *argv[]);
    virtual ~MyApp();
protected:
#if defined(Q_OS_WIN32)
    virtual bool winEventFilter(MSG *msg, long *result);
#endif
protected:
#if defined (Q_OS_WIN32)
    void processDbtDeviceArrival(MSG *msg, long *result);
    void processDevArrivalBroadcastVolume(DEV_BROADCAST_VOLUME *dev, long *result);
#endif
signals:
    void newVolumeDevice(const QString &disk, int flags);
};

#endif // MyApp_H
